import fetch from '@/utils/network/fetch'

const getKnowledge = (objc = {}) => {
    fetch('/api/classification?class_type=key_class_knowledge&build_tree=true', objc)
}

const editKnowledge = (objc = {}) => {
    fetch('/api/classification', objc)
}

const removeKnowledge = (objc = {}) => {
    fetch(`/api/classification/${objc.data.id}`, objc)
}

export default {
    getKnowledge,
    editKnowledge,
    removeKnowledge
}